package com.ftg.mall.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ftg.mall.base.entity.pms.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 品牌表 Mapper 接口
 * </p>
 *
 * @author kangjx
 * @since 2022-11-18
 */
@Mapper
public interface BrandMapper extends BaseMapper<Brand> {

    @Select("select * from pms_brand where name like concat(#{name},'%')")
    public List<Brand> findOneByName(String name);


}
